// eslint-disable-next-line no-unused-vars
var http_tmp_data = [] /*请求获取的数据*/

const map_default = [110.336592, 21.287083] /*湛科的经纬度*/
var map_resize = 16 /*地图缩放等级*/
// eslint-disable-next-line no-unused-vars
var map_center = map_default /*地图中心点*/
// eslint-disable-next-line no-unused-vars
var map_search_radiusM = 600 /*检索范围*/
// eslint-disable-next-line no-unused-vars
var map_search_count = 0 /*检索到的数量*/
// eslint-disable-next-line no-unused-vars,no-undef
var map_circle = new AMap.Circle({
    center: map_default, // 圆心坐标
    radius: map_search_radiusM, // 半径
    borderWeight: 2, // 边框宽度
    strokeColor: "#47ff33", // 边框颜色
    strokeWeight: 2, // 边框粗细
    strokeOpacity: 1, // 边框透明度
    fillOpacity: 0.2, // 填充颜色透明度
    strokeStyle: 'dashed', // 边框样式
    strokeDasharray: [10, 10], // 虚线样式
    fillColor: '#1791fc', // 填充颜色
    zIndex: 50, // 层级
}) /*圆*/
// eslint-disable-next-line no-unused-vars
var map_points = [] /*点*/


/* eslint-disable */
var map = new AMap.Map('container', {
    resizeEnable: true, //是否监控地图容器尺寸变化
    zoom: map_resize, //初始化地图层级
    center: map_default, //初始化地图中心点
}) /*地图*/

map_circle.setMap(map)
var circleEditor = new AMap.CircleEditor(map, map_circle)
circleEditor.open()
circleEditor.on('adjust', function(event) {
    map_search_radiusM = event.radius
    functions.change()
})

/*事件绑定*/
var functions = {
    change: null
}

